package com.peanut.baby.mvp.mydata.daily;

import android.content.Context;
import android.widget.TextView;

import com.peanut.baby.R;
import com.peanut.baby.model.CalendarRecord;
import com.peanut.devlibrary.widget.pullrecycle.BaseRecyclerAdapter;
import com.peanut.devlibrary.widget.pullrecycle.BaseViewHolder;

import java.util.List;

/**
 * Created by anonymouslystudio on 2017/9/8.
 */

public class DailyDataRecyclerAdapter extends BaseRecyclerAdapter<CalendarRecord>{
    public DailyDataRecyclerAdapter(Context context, List<CalendarRecord> data) {
        super(context, data);
    }

    @Override
    protected void convert(BaseViewHolder holder, CalendarRecord item) {
        TextView date = holder.getView(R.id.mydata_date);
        date.setText(item.date+"");
    }

    @Override
    protected int getLayoutId() {
        return R.layout.layout_item_mydata;
    }
}
